package com.sangeng.utils;

import javax.servlet.http.HttpServletResponse;

public class WebUtil {
    public static void renderString(HttpServletResponse response, String string){
        try{
            response.setStatus(200);
            response.setContentType("application/json");
            response.setCharacterEncoding("utf-8");
            response.getWriter().print(string);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
